import { ApiProperty } from '@nestjs/swagger';
export class InformationDto {
    @ApiProperty({
        description: '文件名',
        type: String,
        example: '文件1',
        required: false
      })
      name: string;
    
      @ApiProperty({
        description: '主题',
        type: String,
        example: '关于XXXXX',
        required: false
      })
      theme:string;
      @ApiProperty({
        description: '作者',
        type: String,
        example: '胡广生',
        required: false
      })
      author:string;
      @ApiProperty({
        description: '关键词',
        type: String,
        example: 'XXXX',
        required: false
      })
      keyword:string;
      @ApiProperty({
        description: '标签',
        type: String,
        example: '新闻',
        required: false
      })
      targ:string;
      @ApiProperty({
        description: '收藏',
        type: Boolean,
        example: 'false',
        required: false
      })
      collect:boolean;
      @ApiProperty({
        description: '文件',
        type: Array,
        example: "{name:'XXX',url:'/xxxx/xxx.word'}",
        required: false
      })
      files:string[];
      @ApiProperty({
        description: '时间',
        type: String,
        example: '1703925182000',
        required: false
      })
      time:string;
      @ApiProperty({
        description: '用户',
        type: String,
        example: '1',
        required: false
      })
      userId:string;
      @ApiProperty({
        description: '状态',
        type: Number,
        example: '0',
        required: false
      })
      status:number;
      
}
